import { HttpClient } from '@angular/common/http';
import { Component } from '@angular/core';

@Component({
  selector: 'app-tab3',
  templateUrl: 'tab3.page.html',
  styleUrls: ['tab3.page.scss']
})
export class Tab3Page {
  res: Result;
  constructor(private http: HttpClient) { }
  ngOnInit(): void {
    let url = 'http://101.96.128.94:9999/mfresh/data/cart_detail_select.php?uid=423';
    this.http.get(url).subscribe(
      (res: Result) => {
        this.res = res;
      }
    )
  }

}
interface Result {
  products: ResultProduct[];
  uid: string
}
interface ResultProduct {
  count: string;
  did: string;
  pic: string;
  price: string;
  title: string;
}